package com.demo.personalaccountingbackend.dto;

import com.demo.personalaccountingbackend.entity.User;
import lombok.Data;

/**
 * 类描述信息
 *
 * @author Hi$
 * @version 1.0
 * @date 2025/10/14$ 10:40$
 */
@Data
public class LoginResponse {

    private boolean success;
    private String message;
    private String token;
    private User user;

    // 构造方法
    public LoginResponse() {}

    public LoginResponse(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public LoginResponse(boolean success, String message, String token, User user) {
        this.success = success;
        this.message = message;
        this.token = token;
        this.user = user;
    }
}
